import Vue from 'vue'
import Router from 'vue-router'
import home from '@/components/home'
import login from '@/pages/login/login'
import count from '@/pages/manpower/count'
import baseDetail from '@/pages/manpower/baseDetail'
import modification from '@/pages/manpower/modification'
import qiyeDetail from '@/pages/manpower/qiyeDetail'
import skill from '@/pages/peixun/skill'
import addTrain from '@/pages/peixun/addTrain'
import chuangye from '@/pages/peixun/chuangye'
import shiye from '@/pages/peixun/shiye'
import biyeji from '@/pages/fuwu/biyeji'
import buzhu from '@/pages/fuwu/buzhu'
import xiaxiang from '@/pages/fuwu/xiaxiang'
import xuanchuan from '@/pages/fuwu/xuanchuan'
import zhengce from '@/pages/fuwu/zhengce'
import newsDetail from '@/pages/fuwu/newsDetail'
import trainContent from '@/pages/peixun/trainContent'
import detail from '@/pages/peixun/detail'
Vue.use(Router)

export default new Router({
	routes: [{
			path: '/',
			name: 'login',
			component: login
		},
		{
			path: '/home',
			name: 'home',
			component: home,
			children: [{
				path: 'count',
				name: 'count',
				component: count,
				meta: { keepAlive: true }
			},
			{
				path: 'baseDetail/:id',
				name: 'baseDetail',
				component: baseDetail,
				meta: { keepAlive: false }
			},
			{
				path: 'qiyeDetail/:id',
				name: 'qiyeDetail',
				component: qiyeDetail,
				meta: { keepAlive: false }
			}, {
				path: 'skill',
				name: 'skill',
				component: skill,
				meta: { keepAlive: true }
			}, {
				path: 'chuangye',
				name: 'chuangye',
				component: chuangye,
				meta: { keepAlive: false }
			}, {
				path: 'shiye',
				name: 'shiye',
				component: shiye,
				meta: { keepAlive: false }
			}, {
				path: 'biyeji',
				name: 'biyeji',
				component: biyeji,
				meta: { keepAlive: false }
			}, {
				path: 'buzhu',
				name: 'buzhu',
				component: buzhu,
				meta: { keepAlive: false }
			},
			{
				path: 'xiaxiang',
				name: 'xiaxiang',
				component: xiaxiang,
				meta: { keepAlive: false }
			}, {
				path: 'xuanchuan',
				name: 'xuanchuan',
				component: xuanchuan,
				meta: { keepAlive: false }
			},
			 {
				path: 'zhengce',
				name: 'zhengce',
				component: zhengce,
				meta: { keepAlive: false }
			},
			 {
				path: 'addTrain',
				name: 'addTrain',
				component: addTrain,
				meta: { keepAlive: false }
			},
			 {
				path: 'newsDetail',
				name: 'newsDetail',
				component: newsDetail,
				meta: { keepAlive: false }
			},
			{
				path: 'trainContent/:id',
				name: 'trainContent',
				component: trainContent,
				meta: { keepAlive: false }
			},
			{
				path: 'detail/:id',
				name: 'detail',
				component: detail,
				meta: { keepAlive: false }
			},
			{
				path: 'modification/:id',
				name: 'modification',
				component: modification,
				meta: { keepAlive: false }
			},
	
			]
		}

	]
})